dataSource {
    pooled = true
        	
    driverClassName = "com.mysql.jdbc.Driver"
    username = "uco"
    password = "uco123"
	properties {
		maxActive = 50
		maxIdle = 25
		minIdle = 5
		initialSize = 5
		minEvictableIdleTimeMillis = 60000
		timeBetweenEvictionRunsMillis = 60000
		maxWait = 10000
	}
		
}
hibernate {
    cache.use_second_level_cache = true
    cache.use_query_cache = true
    cache.provider_class = "net.sf.ehcache.hibernate.EhCacheProvider"
}

// environment specific settings
environments {
	development {
        dataSource {
            dbCreate = "update" // one of 'create', 'create-drop','update'
			driverClassName = "org.hsqldb.jdbcDriver"
			username = "sa"
			password = ""
			url = "jdbc:hsqldb:mem:devDB"
        }
    }
    test {
        dataSource {
            dbCreate = "update"
			username = "ucodev"
			password = "uco123"
			url = "jdbc:mysql://174.142.42.90:3306/coorte_dev"
            //url = "jdbc:mysql://174.142.42.90:3306/ucounicamp"
        }
    }
	  production {
		    dataSource {
			      dbCreate = "update"
			      url = "jdbc:mysql://localhost:3306/ucounicamp"
		    }
	  }
}

